티스토리 뷰
1. mochahttp://mochajs.org
- 테스트 수트 : 테스트 환경을 모카에서는 describe()로 구현
- 테스트 케이스 : 실제 테스트 it() 으로 구현
//{filename}.spec.js : 테스트 코드
const assert = require('assert')
describe('.js모듈의 함수', () => {
it ('문자열을 대문자로 변환', () => {
const result = {메소드}(value)
assert.equal(result, 'ok')
})
})
2. shouldhttps://github.com/tj/should.js
1.mocha 에 비해 가독성이 좋다
describe('.js모듈의 함수', () => {
it ('문자열을 대문자로 변환', () => {
//
const result = {메소드}(value)
result.should.be.equal('ok')
})
})
#단위 테스트
3. superTesthttps://github.com/visionmedia/supertest
#통합테스트, 익스프레스 통합 테스트용 라이브러리
node.js
orm
http://knexjs.org/
https://www.npmjs.com/package/knex
오라클 사용시 대문자 SQL 사용
oracledb 설치
https://devbybyun.tistory.com/7
https://osozaki.tistory.com/4
https://github.com/oracle/node-oracledb/blob/master/examples/example.js#L32
express-basic-auth
'공부합시다 > express' 카테고리의 다른 글
express ORM 트랜드 (0) | 2019.12.31 |
---|
댓글
- Total
- Today
- Yesterday
TAG
- MySQL
- graphql-php
- 테스트_다중트랜잭션
- Python
- session+token authorize
- composite-primarykey
- 정규식
- php-laravel
- Laravel
- php
- composer-self-update
- vim
- 라라벨
- 메일
- composer-install
- exception-test
- addMonthWithoutOverflow
- php-composer
- POP3
- redis
- addMonth
- laravel-test
- VIM-COMMAND
- 나는욕심쟁이
- django
- graphql
- 둘이상인증한번에사용하기
- 정의
- 자바스크립트
- eloquant
공지사항